package com.hqyj.controller;

import com.hqyj.pojo.TbOwner;
import com.hqyj.service.TbOwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/owner")
public class OwnerLoginController {

    @Autowired
    TbOwnerService ownerService;

    /**
     * 127.0.0.1:8080/owner/login ---- get
     */
    @GetMapping("/login")
    public HashMap<String, Object> login(TbOwner tbOwner){
        return ownerService.login(tbOwner);
    }
}
